<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    {{--<title>{{$info['en_title'] ?? substr($info['en_description'],0,50)}} - {{$site_name}}</title>
    <meta name="description" content="{{substr($info['en_description'],0,50)}}"/>--}}

    <title>{{$info['en_title'] ?: strip_tags($info['en_content'])}} - {{$site_name}}</title>
    <meta name="description" content="{{$info['en_description']}}"/>

    <meta name="keywords" content="{{$info['en_keywords']}}"/>

    <!--- head 样式 --->
    @include('frontend/common/head')
</head>
<body>

<!--- header --->
@include('frontend/common/header')

<main>
    <div class="main_left">

        <div class="news-details">
            <div class="title fw700">
                {{--<a href="{{atwUrl('article', $info)}}" target="_blank">{{$info['en_title']}}</a>--}}
                {{$info['en_title']}}
            </div>
            <div class="time show_time" data-stamp="{{$info['ctime']}}">{{date("Y-m-d H:i:s",$info['ctime'])}}</div>
            <div class="content">
                <!--- 第一段不是图片的时候才显示封面图片 --->
                @if($info['pic'] && empty($info['first_pic']))
                    <p class="img">
                        <img src="{{$info['pic']}}"/>
                    </p>
                @endif

                {!! $info['en_content'] !!}
            </div>

            <div class="key">
                @foreach($info['tags'] as $_tag)
                    <a href="{{atwUrl('tags', $_tag)}}" target="_blank">{{$_tag['en_title']}}</a>
                @endforeach
            </div>

            <!--- 分享：抄自原英文站的php页面 --->
            <div class="share">
                <a style="text-decoration:none"
                   href="https://twitter.com/share?text={{rawurlencode($info['en_title'])}}&url={{rawurlencode(atwUrl('article', $info))}}"
                   target="_blank" rel="nofollow">
                    <span><img title="Share to Twitter" src="{{$style_host}}atw/images/tuite.png"></span>
                </a>

                <a style="text-decoration:none" rel="nofollow" target="_blank"
                   href="http://www.facebook.com/share.php?u={{rawurlencode(atwUrl('article', $info))}}&t={{rawurlencode($info['en_title'])}}">
                    <span><img title="Share to Facebook" src="{{$style_host}}atw/images/facebook.png"></span>
                </a>
            </div>
        </div>

    </div>

    <!--- right --->
    <div class="main_right">

        <!--- 订阅 --->
        <div class="main_right_con">
            @include('frontend/common/right_email')
        </div>

        <!--- 一周热门 --->
        <div class="main_right_con">
            @include('frontend/common/right_week')
        </div>

    </div>
</main>


<!--- 底部 --->
@include('frontend/common/footer')

<!--- 底部js --->
@include('frontend/common/bottom')


</body>
</html>
